﻿using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YJKInspectModel.PerformanceAnalysis.ShapeCoeffiecientOfBuilding
{
	public partial class ShapeCoefficientOfBuildingForm : System.Windows.Forms.Form
	{
		public ShapeCoefficientOfBuildingForm()
		{
			this.InitializeComponent();
		}

		internal ShapeCoefficientOfBuildingForm(ShapeCoefficientOfBuildingCal input)
		{
			this.m_SCOB = input;
			this.InitializeComponent();
		}

		private void ShapeCoefficientOfBuildingForm_Load(object sender, EventArgs e)
		{
			//base.Icon = Resource.YArchitechIcon;
			this.lblSCOB.Text = "当前项目的体形系数C：" + Math.Round(this.m_SCOB.ShapeCoefficient, 2);
		}

		private void btnSure_Click(object sender, EventArgs e)
		{
			base.Close();
		}

		private void ShapeCoefficientOfBuildingForm_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyCode == Keys.Escape)
			{
				base.Close();
			}
		}

		private ShapeCoefficientOfBuildingCal m_SCOB;
	}
}
